-- GENERATED SPELL FOR [Kurenai Pitfighter] --


function spell0_19141(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(33424,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19141', 639, 1)
end

function spell1_19141(pUnit, Event) --@Lights Out,n/a--
pUnit:FullCastSpellOnTarget(33425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19141', 587, 1)
end

function spell2_19141(pUnit, Event) --@Punch,n/a--
pUnit:FullCastSpellOnTarget(33423,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19141', 608, 1)
end

function Sorts_19141(pUnit, Event)
local choix_sorts_19141 = math.random(0, 2)
if choix_sorts_19141 == 0 then
pUnit:RegisterEvent('spell0_19141', 1, 1)
end
if choix_sorts_19141 == 1 then
pUnit:RegisterEvent('spell1_19141', 1, 1)
end
if choix_sorts_19141 == 2 then
pUnit:RegisterEvent('spell2_19141', 1, 1)
end
end

function mob19141_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19141', math.random(1500, 3000), 1)
end

function mob19141_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19141_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19141_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19141, 1, 'mob19141_Action')
RegisterUnitEvent(19141, 2, 'mob19141_Leave')
RegisterUnitEvent(19141, 3, 'mob19141_Kill')
RegisterUnitEvent(19141, 4, 'mob19141_Die')
